/**
 * Bakalarska prace - Inteligentni budik
 * @package sleepCatcher
 * @file SCResampler.h
 * @author Jan Pesava - xpesav00
 * @email xpesav00@stud.fit.vutbr.cz
 * @date 2. 4. 2012
 */

#ifndef SCRESAMPLER_H_
#define SCRESAMPLER_H_

#include "models/SCSample.h"

class SCResampler {

// Constructors
public:
	SCResampler(int resampledIndex, bool deleteUnusedSamples);
	virtual ~SCResampler();
// Constants
// Attributes
private:
	SCSample* pBaseSample;
	int resampledIndex;
	int sampleCounter;
	bool deleteUnusedSamples;
// Methods
public:
	SCSample* AddSample(SCSample* pSample);
	void ExecuteResampling(SCSample* pSample);
	void StopCatch();
	void StartCatch();
	void Init();
};

#endif /* SCRESAMPLER_H_ */
